<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>setup3</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="tennisScore-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >tennisScore</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;setup3
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="setup3-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== MODULE DESCRIPTION ==================== -->
<h1 class="epydoc">Module setup3</h1><p class="nomargin-top"><span class="codelink"><a href="setup3-pysrc.html">source&nbsp;code</a></span></p>
<p>setup3.py</p>
  <p>Copyright 2014, Ty A. Lasky</p>
  <p>Released under the GNU General Public License 3.0</p>
  <p>See LICENSE.txt for license information.</p>
  <p>---------------------------------------------------</p>
  <p>Third setup dialog. Gets all remaining setup information, including 
  players.</p>
  <p>Exported classes:</p>
  <p>Setup3 -- Third setup dialog, get player names.</p>

<!-- ==================== CLASSES ==================== -->
<a name="section-Classes"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Classes</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="setup3.Setup3-class.html" class="summary-name">Setup3</a><br />
      Third setup dialog, get player names.
    </td>
  </tr>
</table>
<!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Functions</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">OptionMenu</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="setup3-module.html#myDropdown" class="summary-sig-name">myDropdown</a>(<span class="summary-sig-arg">master</span>,
        <span class="summary-sig-arg">var</span>,
        <span class="summary-sig-arg">optList</span>)</span><br />
      Provides a stylized option menu / dropdown list.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="setup3-pysrc.html#myDropdown">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">list of strings</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="setup3-module.html#readPlayers" class="summary-sig-name">readPlayers</a>(<span class="summary-sig-arg">url</span>)</span><br />
      Reads a player list from the given URL.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="setup3-pysrc.html#readPlayers">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">set</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="setup3-module.html#duplicates" class="summary-sig-name">duplicates</a>(<span class="summary-sig-arg">playerList</span>)</span><br />
      Checks player list to see if there are any duplicate last names.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="setup3-pysrc.html#duplicates">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Variables</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="py"></a><span class="summary-name">py</span> = <code title="3">3</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="baseUrl"></a><span class="summary-name">baseUrl</span> = <code title="'http://tylasky.com/res/tennisScore/'">'http://tylasky.com/res/tennisScore/'</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="mensSinglesUrl"></a><span class="summary-name">mensSinglesUrl</span> = <code title="baseUrl+ 'menSingles.txt'">baseUrl+ 'menSingles.txt'</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="womensSinglesUrl"></a><span class="summary-name">womensSinglesUrl</span> = <code title="baseUrl+ 'womenSingles.txt'">baseUrl+ 'womenSingles.txt'</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="mensDoublesUrl"></a><span class="summary-name">mensDoublesUrl</span> = <code title="baseUrl+ 'menDoubles.txt'">baseUrl+ 'menDoubles.txt'</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="womensDoublesUrl"></a><span class="summary-name">womensDoublesUrl</span> = <code title="baseUrl+ 'womenDoubles.txt'">baseUrl+ 'womenDoubles.txt'</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="menuWidth"></a><span class="summary-name">menuWidth</span> = <code title="29">29</code>
    </td>
  </tr>
</table>
<p class="indent-wrapped-lines"><b>Imports:</b>
  <span title="tkinter">tk</span>,
  <a href="player-module.html" title="player">player</a>,
  <span title="sys">sys</span>,
  <a href="util-module.html" title="util">util</a>
</p><br />
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Function Details</span></td>
</tr>
</table>
<a name="myDropdown"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">myDropdown</span>(<span class="sig-arg">master</span>,
        <span class="sig-arg">var</span>,
        <span class="sig-arg">optList</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="setup3-pysrc.html#myDropdown">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Provides a stylized option menu / dropdown list.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>master</code></strong> (Toplevel widget) - Window to host the menu.</li>
        <li><strong class="pname"><code>var</code></strong> (Tkinter variable) - The variable to be set by the option menu.</li>
        <li><strong class="pname"><code>optList</code></strong> (list of strings) - List of strings for the option menu.</li>
    </ul></dd>
    <dt>Returns: OptionMenu</dt>
        <dd>The constructed option menu / dropdown list.</dd>
  </dl>
</td></tr></table>
</div>
<a name="readPlayers"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">readPlayers</span>(<span class="sig-arg">url</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="setup3-pysrc.html#readPlayers">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Reads a player list from the given URL.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>url</code></strong> (strings) - The URL that holds the player list information.</li>
    </ul></dd>
    <dt>Returns: list of strings</dt>
        <dd>List of players in a special format that can be parsed into a 
          player object.</dd>
  </dl>
</td></tr></table>
</div>
<a name="duplicates"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">duplicates</span>(<span class="sig-arg">playerList</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="setup3-pysrc.html#duplicates">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Checks player list to see if there are any duplicate last names.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>playerList</code></strong> (list of strings) - List of players, each as string formatted as returned by 
          readPlayers.</li>
    </ul></dd>
    <dt>Returns: set</dt>
        <dd>Set of last names that appear more than once in playerList.</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="tennisScore-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >tennisScore</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Nov  9 17:23:05 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
